import request from '@/utils/request'

export function getRoleList(data) {
  return request({
    url: '/role/getRoleList',
    method: 'post',
    data
  })
}

export function addRole(data) {
  return request({
    url: '/role/addRole',
    method: 'post',
    data
  })
}

export function editRole(data) {
  return request({
    url: '/role/editRole',
    method: 'post',
    data
  })
}

export function getMainPerm() {
  return request({
    url: '/role/getMainPerm',
    method: 'post'
  })
}

export function getRolePermIds(data) {
  return request({
    url: '/role/getRolePermIds',
    method: 'post',
    data
  })
}

export function updateRolePerm(data) {
  return request({
    url: '/role/updateRolePerm',
    method: 'post',
    data
  })
}

